package com.lbs.jiepiaisi.bean;

import java.io.Serializable;
import java.util.List;

/**
 *
 * 时间：2017/11/6 16:40
 * 作用：违章城市实体类
 */

public class CityEntity implements Serializable{
    //状态值（0代表成功，1代表失败）
    private String status;

    //对应的result对象
    private Result result;

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public static class Result implements Serializable{

        //对应的总items信息(JSONArrary)
        private List<Item> items;

        public List<Item> getItems() {
            return items;
        }

        public void setItems(List<Item> items) {
            this.items = items;
        }

        public static class Item implements Serializable{
            //城市编号
            private String cityCode;
            //城市名称
            private String cityName;
            //城市简称
            private String abbr;
            //是否需要车架号0,不需要 1,需要
            private int class1;
            //同上,（解决java中class关键字无法映射）
            private int classa;
            //需要几位车架号0:全部 1-9: 需要车架号后N位
            private int classNo;
            //创建时间
            private String createTime;
            //是否需要发动机号0:不需要 1:需要
            private int engine;
            //需要几位发动机号0:全部 1-9 :需要发动机号后N位
            private int engineNo;
            //城市id
            private int id;
            //省份
            private String province;
            //省份编码
            private String provinceCode;
            //注册状态
            private int regist;
            //号码
            private int registno;
            //版本
            private int version;

            public String getCityCode() {
                return cityCode;
            }

            public void setCityCode(String cityCode) {
                this.cityCode = cityCode;
            }

            public String getCityName() {
                return cityName;
            }

            public void setCityName(String cityName) {
                this.cityName = cityName;
            }

            public String getAbbr() {
                return abbr;
            }

            public void setAbbr(String abbr) {
                this.abbr = abbr;
            }

            public int getClass1() {
                return class1;
            }

            public void setClass1(int class1) {
                this.class1 = class1;
            }

            public int getClassa() {
                return classa;
            }

            public void setClassa(int classa) {
                this.classa = classa;
            }

            public int getClassNo() {
                return classNo;
            }

            public void setClassNo(int classNo) {
                this.classNo = classNo;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public int getEngine() {
                return engine;
            }

            public void setEngine(int engine) {
                this.engine = engine;
            }

            public int getEngineNo() {
                return engineNo;
            }

            public void setEngineNo(int engineNo) {
                this.engineNo = engineNo;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public String getProvinceCode() {
                return provinceCode;
            }

            public void setProvinceCode(String provinceCode) {
                this.provinceCode = provinceCode;
            }

            public int getRegist() {
                return regist;
            }

            public void setRegist(int regist) {
                this.regist = regist;
            }

            public int getRegistno() {
                return registno;
            }

            public void setRegistno(int registno) {
                this.registno = registno;
            }

            public int getVersion() {
                return version;
            }

            public void setVersion(int version) {
                this.version = version;
            }

            @Override
            public String toString() {
                return "Item{" +
                        "cityCode='" + cityCode + '\'' +
                        ", cityName='" + cityName + '\'' +
                        ", abbr='" + abbr + '\'' +
                        ", class1=" + class1 +
                        ", classa=" + classa +
                        ", classNo=" + classNo +
                        ", createTime='" + createTime + '\'' +
                        ", engine=" + engine +
                        ", engineNo=" + engineNo +
                        ", id=" + id +
                        ", province='" + province + '\'' +
                        ", provinceCode='" + provinceCode + '\'' +
                        ", regist=" + regist +
                        ", registno=" + registno +
                        ", version=" + version +
                        '}';
            }
        }
    }

}
